package com.ys.entity.storage;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_Dest", catalog="Id")
public class TccDest extends BaseEntity<TccDest> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Valueot", nameJava="valueot", typeDataBase="varchar")
	private String valueot;
	@YsField(nameDataBase="Valuecode", nameJava="valuecode", typeDataBase="varchar")
	private String valuecode;
	@YsField(nameDataBase="Valuenm", nameJava="valuenm", typeDataBase="varchar")
	private String valuenm;
	@YsField(nameDataBase="Vtpye", nameJava="vtpye", typeDataBase="tinyint")
	private Integer vtpye;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccDest setId(Long id) {
		this.id = id;
		return this;
	}
	public String getValueot() {
		return valueot;
	}
	public TccDest setValueot(String valueot) {
		this.valueot = valueot;
		return this;
	}
	public String getValuecode() {
		return valuecode;
	}
	public TccDest setValuecode(String valuecode) {
		this.valuecode = valuecode;
		return this;
	}
	public String getValuenm() {
		return valuenm;
	}
	public TccDest setValuenm(String valuenm) {
		this.valuenm = valuenm;
		return this;
	}
	public Integer getVtpye() {
		return vtpye;
	}
	public TccDest setVtpye(Integer vtpye) {
		this.vtpye = vtpye;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccDest setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccDest setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccDest setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccDest tccDest(
		String valueot,
		String valuecode,
		String valuenm,
		Integer vtpye,
		Integer status
			) {
		TccDest entity = new TccDest();
		entity.setValueot(valueot);
		entity.setValuecode(valuecode);
		entity.setValuenm(valuenm);
		entity.setVtpye(vtpye);
		entity.setStatus(status);
		return entity;
	}
}